#define ETHERTYPE_BF_FABRIC     0x9000
#define FABRIC_HEADER_TYPE_CPU 5
#define ETHERTYPE_IPV4 0x0800

header ethernet_t ethernet;
header ipv4_t ipv4;

parser start {
    return parse_ethernet;
}

parser parse_ethernet {
    extract(ethernet);
    return select(latest.etherType) {
        ETHERTYPE_IPV4 : parse_ipv4;
        default: ingress;
    }
}

parser parse_ipv4 {
  extract(ipv4);
  return ingress;
}


